<template>
  <el-table
    :data="tableData"
    header-align="center"
    class="customer-table"
    height="table"
    empty-text="暂无数据"
  >
    <el-table-column align="center" prop="name" label="姓名"> </el-table-column>
    <el-table-column align="center" prop="phone" label="联系方式">
    </el-table-column>
    <el-table-column align="center" prop="address" label="地址">
    </el-table-column>
    <el-table-column
      align="center"
      prop="periodOfActivists"
      label="成为积极分子"
    >
    </el-table-column>
    <el-table-column
      align="center"
      prop="periodOfDevelopmentObject"
      label="成为发展对象"
    >
    </el-table-column>
    <el-table-column
      align="center"
      prop="periodOfProbationaryMember"
      label="成为预备党员"
    >
    </el-table-column>
    <el-table-column align="center" prop="periodOfPartyMember" label="转正">
    </el-table-column>
    <el-table-column align="center" prop="duties" label="职务">
    </el-table-column>
    <el-table-column align="center" prop="lnauguralAddress" label="就职单位">
    </el-table-column>
    <el-table-column align="center" prop="partyOrganization" label="党组织">
    </el-table-column>
  </el-table>
</template>

<script>
export default {
  props: ["biaogeqingqiucanshu","fenyexinxi"],
  data() {
    return {
      tableData: [],
    };
  },
  methods: {
    gengxin() {
      this.huoqushuju();
    },
    huoqushuju() {
      let params = new URLSearchParams();
      params.append("page", this.fenyexinxi.currentPage);
      params.append("size", this.fenyexinxi.pagesize);
      params.append("status", this.biaogeqingqiucanshu.leibie);
      params.append("villageId", this.biaogeqingqiucanshu.selectcun);
      params.append("zhenId", this.biaogeqingqiucanshu.selectzhen);
      this.$axios
        .post("/leader/partmember/querypartmembertable", params)
        .then((response) => {
          console.log(response)
          this.tableData = response.data.data.data.records;
          // 设置数据total
          this.$emit("setfenyetotal", response.data.data.data.total);
        })
        .catch((err) => {
          console.log(err);
        });
    },
  },
};
</script>

<style lang="less" scoped>
.el-table {
  height: 100%;
}
</style>